home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 1 / Cream of the Crop 1.iso / UTILITY / CMDED2E6.ARJ / COMMON.INC < prev    next >
Text File  |  1992-06-30  |  2KB  |  46 lines

  1. ; COMMON.INC
  2. ; (c) 1989, 1990 Ashok P. Nadkarni
  3. ;
  4. ; Common definitions for CMDEDIT
  5.  
  6. ;wd put comments in IFNDEF - ENDIF below to prevent TASM
  7. ;   doing a compatibility pass.  Remove the comments and
  8. ;   define TSR if you want to do that sort of testing.
  9. ;    IFNDEF    TSR
  10. TSR        equ    1        ;1 if we should TSR. If 0,
  11. ;                     used for debugging without TSRing
  12. ;    ENDIF
  13.  
  14. STACK_SIZE     equ    768        ;Stack size after TSR'ing
  15.  
  16. LINEBUF_SIZE    equ    256        ;Max size of line storage
  17. ;                     buffer. Do NOT change this
  18. ;                     since applications can specify
  19. ;                     buffers upto this size.
  20.  
  21. ; Min size for various string stack buffers
  22. DOSSIZE_MIN    equ    4        ;DOS history, 2 for sentinel +
  23. ;                     2 for top of history sentinel
  24. MACROSIZE_MIN    equ    5        ;Macro buffer, 2 for sentinel +
  25. ;                     3 for separator
  26. SYMSIZE_MIN    equ    5        ;Symbol buffer, same as MACROSIZE_MIN
  27. DIRSIZE_MIN    equ    2        ;Directory stack, 2 for sentinel
  28.  
  29. TOGGLE_CURSOR    equ    1        ;toggle cursor between 
  30. ;                             overwrite and insert modes
  31. EXTRA_HANDLER    equ    0        ;added by wd:
  32. ;  set above to 1 to include 0EAh line-input handler
  33.  
  34. ; Error codes for routine abort_processing. These codes must be in the
  35. ; same order as the error messages in table abort_msg_table in cmdedit.asm
  36. E_TRUNCATE    equ    0        ;Line too long
  37. E_SIGNAL    equ    1        ;User signal received
  38. E_DIRSTK_EMPTY    equ    2        ;Empty directory stack
  39. E_DIRSTK    equ    3        ;Other dir stack error
  40. E_DIRSTK_DOS    equ    4        ;Directory stack only for DOS
  41. E_NESTED_MACRO    equ    5        ;Nested macro def
  42. E_NESTED_DELM    equ    6        ;delm inside a macro
  43. E_CTRL_BREAK    equ    7        ;Ctrl-Break received
  44.  
  45. VAR_MARKER    equ    '%'
  46.